package com.ruoyi.supplier.service;

import com.ruoyi.supplier.domain.Purchase;
import com.ruoyi.supplier.domain.vo.PurchaseVo;
import com.ruoyi.supplier.domain.bo.PurchaseBo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 采购单Service接口
 *
 * @author ruoyi
 * @date 2023-09-18
 */
public interface IPurchaseService {

    /**
     * 查询采购单
     */
    PurchaseVo queryById(Integer purchaseId);

    /**
     * 查询采购单列表
     */
    TableDataInfo<PurchaseVo> queryPageList(PurchaseBo bo, PageQuery pageQuery);

    /**
     * 查询采购单列表
     */
    List<PurchaseVo> queryList(PurchaseBo bo);

    /**
     * 修改采购单
     */
    Boolean insertByBo(PurchaseBo bo);

    /**
     * 修改采购单
     */
    Boolean updateByBo(PurchaseBo bo);

    /**
     * 校验并批量删除采购单信息
     */
    Boolean deleteWithValidByIds(Collection<Integer> ids, Boolean isValid);
}
